<?php

use yii\helpers\Html;
use yii\widgets\DetailView;
use yii\bootstrap\Modal;

/* @var $this yii\web\View */
/* @var $model backend\models\SchoolCertificate */

$this->title = $model->ID;
$this->params['breadcrumbs'][] = ['label' => 'School Certificates', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
\yii\web\YiiAsset::register($this);
?>
<div class="school-certificate-view">

    <div class="panel">
		<div class="panel-heading">
        <?= Html::encode($model->ZZMC) ?>
        <?= Html::a('修改', ['update', 'id' => $model->ID], [
          'class' => 'btn btn-primary',
          'style' => [
            'position' => 'absolute',
            'right' => '30px',
            'top' => '23px',
          ]
        ]) ?>
		</div>
        <div class="panel-body">
          <?= DetailView::widget([
              'model' => $model,
              'attributes' => [
                  // 'ID',
                  // 'XXID',
                  'ZZLB',
                  'ZZMC',
                  'WJ',
                  'HDSJ',
                  'DJSJ',
              ],
          ]) ?>
          <object data="<?= $model->WJ ?>" width="100%" style="min-height: 56vw" type="application/pdf">
              <embed src="<?= $model->WJ ?>" width="100%" style="min-height: 56vw" type="application/pdf">
                  <p>当前浏览器不支持预览该文件，可点击右边链接下载: <a href="<?= $model->WJ ?>">下载</a></p>
              </embed>
          </object>
        </div>
    </div>

</div>
